home *** CD-ROM | disk | FTP | other *** search
/ ftp.sustworks.com 2018 / ftp.sustworks.com.zip / ftp.sustworks.com / IPNetSentry_12.hqx / IPNetSentry_12 / IPNetSentry AppleScripts / IPNS Scriptable TE Example < prev    next >
Text File  |  2000-12-21  |  757b  |  22 lines

  1. -- first get the trigger info from IPNetSentry
  2. tell application "IPNetSentry.PPC"
  3.     set theTriggerIPAddress to triggeripaddress
  4.     set theTriggerPort to triggerport
  5.     set theTriggerProtocol to triggerprotocol
  6.     set theTriggerService to triggerservice
  7.     set theTriggerTime to triggertime
  8.     set theTriggerDate to triggerdate
  9.     set myNotification to "IPNetSentry trigger
  10. Remote IP Address: " & theTriggerIPAddress & "
  11. Port: " & theTriggerPort & "
  12. Protocol: " & theTriggerProtocol & "
  13. Service: " & theTriggerService & "
  14. Time: " & theTriggerTime & "
  15. Date: " & theTriggerDate
  16. end tell
  17. --- now tell the Scriptable Text Editor to display this info
  18. tell application "Scriptable Text Editor"
  19.     activate
  20.     make new document
  21.     set contents of document 1 to myNotification
  22. end tell